<jsp:include page="tempHeader.jsp" />
<jsp:include page="tempMenubar.jsp" />
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="cfs.databean.Customer"%>

<hr><div id="container">
        <div id="content" class="wrap">    
               <hr><h2 class="separate">All Customer List</h2>
               <div class="marginBottom30 clearFix">
                   <form method="POST" name="resetPassword" action="resetPassword.do">
                    <jsp:include page="error-list.jsp" />   
                    <hr><table class="card-activity expandable" cellspacing="5">
        		<thead style="text-align: center;">
			<tr>
				<th class="header" width ="100" style="text-align:left;"><span class="under"><a href="#"
						title="Sort by Type" tabindex="150">Username</a></span><span
					class="sorter card-noprint"></span></th>
				<th class="header" width ="200" style="text-align:right;"><span class="under"><a href="#"
						title="Sort by Post Date" tabindex="100">First name</a></span></th>
				<th class="header" width ="240" style="text-align:right;"><span class="under"><a href="#"
						title="Sort by Description" tabindex="220">Last name</a></span></th>
				<th class="amount header" width ="300" style="text-align:right;"><span class="under"><a
						href="#" title="Sort by Amount" tabindex="300">Email Address</a></span></th>
				<th class="amount header" width ="300" style="text-align:right;"><span class="under"><a
						href="#" title="Sort by Amount" tabindex="160">Reset Password</a></span></th>
			</tr>
		</thead>
               <tbody>
			<c:if test="${!empty customerList }">
				<c:forEach var="entry" items="${customerList }">
					<tr class="summary">
						<td style="text-align: left;"><a href="viewAccount.do?selectedId=${entry.customer_id}">${entry.username }</a></td>
						<td style="text-align: right;">${entry.firstname}</td>
						<td style="text-align: right;">${entry.lastname}</td>
						<td style="text-align: right;">${entry.email}</td>
                                                <td style="text-align: right;"><input type="hidden" id="selectedUser" name="selectedUser"
                                                    value="${entry.customer_id }" /> <input type="submit"
                                                    name="button" value="Reset Password" />
                                                </td>
					</tr>
				</c:forEach>
			</c:if>

		</tbody>
	</table>
        </form>
                   <hr><h2 class="separate"></h2>
                </div>
        </div>
</div>
<jsp:include page="tempBottom.jsp" />